package cn.lasse.design;


import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Date;

/**
 * 备忘录是对原有配置类的扩展，可以设置和获取配置信息
 * @author Lasse
 */
@Data
@AllArgsConstructor
public class ConfigMemento {
    private ConfigFile configFile;

    private Date mementoDate;
    //...额外信息

    public ConfigMemento (ConfigFile configFile){
        this.configFile=configFile;
        this.mementoDate=new Date();
    }
}
